package com.springboot.cloud.seckill.feign;

import com.springboot.cloud.common.core.entity.vo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author godyao
 * @date 2022/3/26
 */
@Component
@Slf4j
public class SeckillFeignFallBack implements SeckillFeign{
    @Override
    public Result<Void> updateStockByGoodsId(Long goodsId, Integer stock) {
        log.error("更新库存失败，goodsId={},stock={}", goodsId, stock);
        return new Result<Void>();
    }
}
